package cn.edu.zzuli.staticProxy;

public class Proxy implements Rent {

    //被代理的房东
    private Host host;

    public Proxy() {}

    public Proxy(Host host) {
        this.host = host;
    }

    public void Rent() {
        sign();
        visitHost();
        host.Rent();
    }

    //中介的增强功能
    public void sign() {
        System.out.println("签合同");
    }

    //中介的增强功能
    public void visitHost() {
        System.out.println("看房");
    }
}
